package com.lwy.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
    * 消息表
    */
@Data
@TableName(value = "book_message")
public class BookMessage {
    @TableId
    private Integer id;
    //小说简介
    private String content;
    //用户id
    private Integer uid;
    //状态
    private Integer status;
//    小说id
    private Integer novel_id;
//章节id
    private Integer chapter_id;
//类型
    private String type;
//创建时间
    private String create_time;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private List<BookNove> bookNove;
//章节
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private BookNovelChapter bookNovelChapter;
}